
strstr.o:     file format elf64-littleaarch64


Disassembly of section .text:

0000000000000000 <main>:
#include <stdio.h>
#include <string.h>

void main()
{
   0:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
   4:	910003fd 	mov	x29, sp
    char *data = "  ";
   8:	90000000 	adrp	x0, 0 <main>
   c:	91000000 	add	x0, x0, #0x0
  10:	f9000fa0 	str	x0, [x29, #24]
    char *pstr = NULL;
  14:	f9000bbf 	str	xzr, [x29, #16]

    pstr = strstr(data, "ao");
  18:	90000000 	adrp	x0, 0 <main>
  1c:	91000000 	add	x0, x0, #0x0
  20:	aa0003e1 	mov	x1, x0
  24:	f9400fa0 	ldr	x0, [x29, #24]
  28:	94000000 	bl	0 <strstr>
  2c:	f9000ba0 	str	x0, [x29, #16]

    if (pstr != NULL) {
  30:	f9400ba0 	ldr	x0, [x29, #16]
  34:	f100001f 	cmp	x0, #0x0
  38:	540000c0 	b.eq	50 <main+0x50>  // b.none
        printf("pstr = %s\n", pstr);
  3c:	90000000 	adrp	x0, 0 <main>
  40:	91000000 	add	x0, x0, #0x0
  44:	f9400ba1 	ldr	x1, [x29, #16]
  48:	94000000 	bl	0 <printf>
    }
    else {
        printf("pstr is blank\n");
    }
}
  4c:	14000004 	b	5c <main+0x5c>
        printf("pstr is blank\n");
  50:	90000000 	adrp	x0, 0 <main>
  54:	91000000 	add	x0, x0, #0x0
  58:	94000000 	bl	0 <puts>
}
  5c:	d503201f 	nop
  60:	a8c27bfd 	ldp	x29, x30, [sp], #32
  64:	d65f03c0 	ret
